package com.realestate.model;

import java.io.Serializable;
import javax.persistence.*;

import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the brtb_common_attribute database table.
 * 
 */
@Entity
@Table(name="brtb_common_attribute")
public class BrtbCommonAttribute implements Serializable {
	private static final long serialVersionUID = 1L;

	private Long id;

	private String commonAttributeCode;
		
	private String commonAttributeName;

	private String description;

	private Date makeDate;

	private String recordStatus;

	private Set<BrtbProductCommonAttrValue> brtbProductCommonAttrValues;

    public BrtbCommonAttribute() {
    }

    @Id
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name="attribute_code")
	public String getCommonAttributeCode() {
		return this.commonAttributeCode;
	}

	public void setCommonAttributeCode(String commonAttributeCode) {
		this.commonAttributeCode = commonAttributeCode;
	}

	@Column(name="attribute_name")
	public String getCommonAttributeName() {
		return this.commonAttributeName;
	}

	public void setCommonAttributeName(String commonAttributeName) {
		this.commonAttributeName = commonAttributeName;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name="make_date")
	public Date getMakeDate() {
		return this.makeDate;
	}

	public void setMakeDate(Date makeDate) {
		this.makeDate = makeDate;
	}

	@Column(name="record_status")
	public String getRecordStatus() {
		return this.recordStatus;
	}

	public void setRecordStatus(String recordStatus) {
		this.recordStatus = recordStatus;
	}

	@OneToMany(mappedBy="brtbCommonAttribute")
	public Set<BrtbProductCommonAttrValue> getBrtbProductCommonAttrValues() {
		return this.brtbProductCommonAttrValues;
	}

	public void setBrtbProductCommonAttrValues(Set<BrtbProductCommonAttrValue> brtbProductCommonAttrValues) {
		this.brtbProductCommonAttrValues = brtbProductCommonAttrValues;
	}
	
}